package laba_1_3;

public class CalcImpl {
	public String binarySubtraction(String fInput, String sInput) {
		int f, s, sub = 0;
		f = Integer.parseInt(fInput, 2);
		s = Integer.parseInt(sInput, 2);
		sub = f - s;
		return String.valueOf(Integer.toString(sub, 2));
	}
	
	public String tetraMult(String fInput, String sInput) {
		int f, s, mul = 0;
		f = Integer.parseInt(fInput, 3);
		s = Integer.parseInt(sInput, 3);
		mul = f * s;
		return String.valueOf(Integer.toString(mul, 3));
	}
}
